pkg_name=linux-headers
build_dir=$builds_dir_root/$pkg_name-cross

rm -Rf "$build_dir"
mkdir -p "$build_dir"
cd "$build_dir"

install_tmp_dir=/tmp/$pkg_name-cross
rm -Rf "$install_tmp_dir"
mkdir -p "$install_tmp_dir"

export KBUILD_OUTPUT=$build_dir
make    ARCH=x86_64				\
        -C "$sysroot/src/linux"			\
	"INSTALL_HDR_PATH=$install_tmp_dir"	\
	"O=$build_dir"				\
	headers_install

install_dirs_in_sysroot  "$builders_dir_root/linux-headers/devel.dirs" "$sysroot/"
install_files_in_sysroot "$builders_dir_root/linux-headers/devel.files" "$install_tmp_dir/" "$sysroot/"

rm -Rf "$install_tmp_dir"
rm -Rf "$build_dir"
